#%%
# timeit module
import timeit

timeit.timeit("obj.method()",
"""
    def method(self):
        pass
obj = SomeClass()
""")
# %%
timeit.timeit("f()",
"""
def f():
    pass
""")
# %%
